from app import create_app
from app.config import config

# 初始化
app = create_app(config)

# https://quart.palletsprojects.com/en/latest/
# https://quart.palletsprojects.com/en/latest/how_to_guides/quart_extensions.html
if __name__ == '__main__':
    app.run(
        port=config['port'],
        debug=config['debug']
    )

    # app.run(port=5000, certfile='cert.pem', keyfile='key.pem')